Chris Pollett > Old Classes > CS174
( Print View )

Student Corner:
  [Submit Sec2]
  [Grades Sec2]

  [Submit Sec3]
  [Grades Sec3]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Description]
  [Course Outcomes]
  [Outcomes Matrix]
  [Course Schedule]
  [Grading]
  [Requirements/HW/Quizzes]
  [Class Protocols]
  [Exam Info]
  [Regrades]
  [University Policies]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Quizzes]

Practice Exams:
  [Midterm]  [Final]

                           












CS174 Fall 2016Practice Final

To study for the final I would suggest you: (1) Know how to do (by heart) all the practice problems. (2) Go over your notes at least three times. Second and third time try to see how much you can remember from the first time. (3) Go over the homework problems. (4) Try to create your own problems similar to the ones I have given and solve them. (5) If you want to study in groups, at this point you are ready to quiz each other. The practice final is below. Here are some facts about the actual final: (a) It is comprehensive (b) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (c) You should bring photo ID. (d) There will be more than one version of the test. Each version will be of comparable difficulty. (e) It is 10 problems, 6 problems will be on material since the midterm, four problems will come from the topics covered prior to the midterm. (f) Two problems will be exactly (less typos) off of the practice final, and one will be off of practice midterm.

  1. Give code declaring an abstract PHP class Foo within the namespace GooCom\Fud with a single method getFoo(). Create a concrete subclass RealFoo which implements getFoo to return the string "foo".
  2. Describe and give an example of the Post Redirect Get Pattern.
  3. Explain with git commands how to do the follow: (a) create a new repository, (b)make a branch, (c)create a patch.
  4. Write a Javascript program which outputs a 50x50 table whose data items are X's and O's output in a checkerboard pattern.
  5. Give HTML and Javascript necessary to output a form with a phone number field and a submit button. The form will only be submitted if the phone number is a valid phone number in the format (XXX) XXX-XXXX.
  6. Write a simple DTD that has as its main element the tag BusinessCard, and which has as subelements FullName, Position, Business, and Address. Your language should support a BusinessCard having a VIP attribute which can only have for its value VIP.
  7. Give an application code example of each of the following in Javascript: (a) timer, (b) XHR request, (c) Promise.
  8. Briefly explain the following two website attacks and explain how to avoid them (a) SQL Injection, (b) target blank attack.
  9. Define the following terms: (a) internationalization, (b) code point, (c) grapheme
  10. Briefly explain with code how to detect screen orientation in Javascript.